package com.woniuxy.carrental.service;

import com.woniuxy.carrental.entity.Supplier;

import java.util.List;

/**
 * 供应商信息
 * @author xilei
 * @create 2021-09-29 下午 2:23
 */
public interface SupplierService {

    //查所有供应商信息
    List<Supplier> findSupplier();
    //分页查供应商信息
    List<Supplier> findSupplierByPage(int pageIndex,int pageSize);
    //改供应商信息
    void updateSupplier(String supplier_name,String supplier_address,
                        String supplier_telephone,String supplier_contant,Integer supplier_id);
    //增供应商信息
    void insertSupplier(Supplier supplier);
    //分页查+按条件查供应商信息
    List<Supplier> findSupplierByPageByParam(String supplier_name,String supplier_address,
                                             String supplier_telephone,String supplier_contant,
                                             int pageIndex,int pageSize);
    //删供应商信息
    void deleteSupplier(Integer supplier_id);
}
